/**
 * 
 */
package sqs.model;

import java.util.ArrayList;
import java.util.List;

import sqs.exception.FeatureNotAvailableException;

/**
 * @author kjleng
 *
 */
public class NumericQuestion extends Question {
	private List<NumericQuestionAnswer> numericQuestionAnswers = new ArrayList<NumericQuestionAnswer>();
	private List<NumericOption> numericOptions = new ArrayList<NumericOption>();
	
	public void addAnswer(Answer ans){
		numericQuestionAnswers.add((NumericQuestionAnswer)ans);
	}
	
	public List<NumericQuestionAnswer> getNumericQuestionAnswers() {
		return numericQuestionAnswers;
	}

	public void setNumericQuestionAnswers(
			List<NumericQuestionAnswer> numericQuestionAnswers) {
		this.numericQuestionAnswers = numericQuestionAnswers;
	}
	public Answer getAnswer(){
		return new NumericQuestionAnswer();
	}
	
	public List<NumericOption> getOptions(){
		return numericOptions;
	}
	public void setOptions(List options) {
		this.numericOptions = (List<NumericOption>)options;
	}
	
	public NumericOption createOption(){
		return new NumericOption();
	}
	public String getLayout(){
		return null;
	}
	public void setLayout(String layout){
		//do nothing, as this feature is not available to rating question
	}
	public Scale createScale(){
		return null;
	}
}
